package com.example.demo111111.dao;


import com.example.demo111111.entity.AuditMerchant;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AuditMerchantDao {


    Boolean save(AuditMerchant auditMerchant);

    Boolean update(AuditMerchant auditMerchant);


    Page<AuditMerchant> pageQuery(AuditMerchant auditMerchant);

    @Delete("delete  from audit_merchant where id=#{id}")
    Boolean deleteById(Long id);

    @Delete("delete  from audit_merchant where merchant_id=#{id}")
    void deleteByMerchantId(Long id);
}
